<!DOCTYPE html>
<html>
<head>
    <title>String Type Example</title>
    <script type="text/javascript">
    
        var stringObject = new String("hello world");
        var stringValue = "hello world";
        
        alert(typeof stringObject);   //"object"
        alert(typeof stringValue);    //"string"
        alert(stringObject instanceof String);  //true
        alert(stringValue instanceof String);   //false
        
    </script>
</head>
<body>

</body>
</html>